/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cmti.skeleton.web;

import com.cmti.commons.entity.AuthenticationInfo;
import com.cmti.commons.entity.Right;
import com.cmti.commons.web.rest.RestfulValidator;

import javax.servlet.ServletRequest;

/**
 *
 * @author Danny Lee
 */
public class RestfulValidatorImpl implements RestfulValidator {

    public AuthenticationInfo authenticate(ServletRequest sr) {
        //TODO:在此添加你自己的Restful验证代码！
        return new AuthenticationInfo();
    }

    public Right authorize(String resourceURI, AuthenticationInfo authInfo) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
